package com.example.demo.service;

import com.example.demo.entity.*;
import io.swagger.models.auth.In;

import java.util.List;
import java.util.Map;

//创建businessService接口,只需要声明函数,不需要实现,类似于C++的头文件
public interface BusinessService {

    int register(Business business);
    Business login(Business business);
    int reset(String businessPhone,String newPassword);
    int editBusiness(Business business);
    Business getBusinessById(int businessId);
    List<Business> getBusinessList();
    //删除商家信息
    int delBusiness(MyArray ids);
    List<BusinessOrder> getOrderList(Integer businessId);
//    List<BusinessOrder> getPrizeListShipped(Integer businessId);
    Integer ship(String orderId, String sendId, String company, String remarks);
    Integer delEmployee(MyArray ids);
    Integer editEmployeeMsg(Employee employee);
    List<Progress> getProgressByOrderId(String orderId);

    List<Map<String, Object>> getStatistics(Integer businessId);

    LogisticsMsg getLogisticsMsgByOrderId(String orderId);
}
